package com.zprmb.udzt;

import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.ImageView;
import android.widget.TextView;

import com.zprmb.udzt.ll.BaseHelper;

public class SuccessActivity extends BaseActivity implements OnClickListener{
	
	private ImageView iv_v4_success_back;
	private TextView tv_v4_success_title;
	
	private TextView tv_success_comment;
	private TextView tv_success_queding;
	private String comment;
	private TextView tv_customer;

	
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.success_activity);
		 BbtApplication.getInstance().addActvity(this);
		Intent intent = getIntent();
		comment = intent.getStringExtra("comment");
		initView();
	} 
	@Override
	protected void onDestroy() {
		// TODO Auto-generated method stub
		super.onDestroy();
		BbtApplication.getInstance().removeActvity(this);
	}
	private void initView() {
		iv_v4_success_back = (ImageView) findViewById(R.id.iv_v4_success_back);
		iv_v4_success_back.setOnClickListener(this);
		tv_v4_success_title = (TextView) findViewById(R.id.tv_v4_success_title);
		tv_v4_success_title.getPaint().setFakeBoldText(true);
		tv_v4_success_title.setText("交易结果");
		tv_success_comment = (TextView) findViewById(R.id.tv_success_comment);
		tv_success_comment.setText("您的资金将在24小时之内到账");
		tv_success_queding = (TextView) findViewById(R.id.tv_success_queding);

		tv_customer=(TextView)findViewById(R.id.enterprise_tel);
		tv_customer.setOnClickListener(this);
		tv_success_queding.setOnClickListener(this);
	}

	public void onClick(View v) {
		switch (v.getId()) {
		case R.id.iv_v4_success_back:
			finish();
			break;
		case R.id.tv_success_queding:
			finish();
			break;

		case R.id.enterprise_tel:
			BaseHelper.showDialog2(this, "拨号", "400-0101-016", 1);
			break;
		}
	}
}
